package concurrencyCookBook.executors;

import java.util.concurrent.Callable;
/**
 * 线程执行完可以返回
 *
 */
public class CallA implements Callable<Integer>{
	private Integer number;

	public CallA(Integer number){
		this.number=number;
	}
	@Override
	public Integer call() throws Exception {
		System.out.println("call"+number);
		return number;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}

}
